package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教材对象 admin_book
 * 
 * @author ruoyi
 * @date 2020-06-10
 */
public class AdminBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 教材编号 */
    @Excel(name = "教材编号")
    private Long bookId;

    /** 教材名称 */
    @Excel(name = "教材名称")
    private String bookName;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String picture;

    /** 难度级别 */
    @Excel(name = "难度级别")
    private String bookLevel;

    /** 曲目数量 */
    @Excel(name = "曲目数量")
    private Long songNum;

    /** 所属单位 */
    private Long companyId;

    /** 所属单位 */
    @Excel(name = "所属单位")
    private String companyName;
    
    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String status;
    
    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;
    
    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;
    /** 课时ID */
    private Long preidId;

    /** 课时ID 1全部添加 */
    private String addAllSongFlag;

  public String getAddAllSongFlag () {
    return addAllSongFlag;
  }

  public void setAddAllSongFlag (String addAllSongFlag) {
    this.addAllSongFlag = addAllSongFlag;
  }

  public Long getPreidId () {
    return preidId;
  }

  public void setPreidId (Long preidId) {
    this.preidId = preidId;
  }

  public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setBookLevel(String bookLevel) 
    {
        this.bookLevel = bookLevel;
    }

    public String getBookLevel() 
    {
        return bookLevel;
    }
    public void setSongNum(Long songNum) 
    {
        this.songNum = songNum;
    }

    public Long getSongNum() 
    {
        return songNum;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setCompanyName(String companyName) 
    {
        this.companyName = companyName;
    }

    public String getCompanyName() 
    {
        return companyName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    
    public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}
	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("bookName", getBookName())
            .append("picture", getPicture())
            .append("bookLevel", getBookLevel())
            .append("songNum", getSongNum())
            .append("companyId", getCompanyId())
            .append("companyName", getCompanyName())
            .append("status", getStatus())
            .append("author", getAuthor())
            .append("delFlag", getDelFlag())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
